package com.course.app.api.data;

import lombok.Data;

/**
 * Created by Justin on 2017/5/17.
 */
@Data
public class TaskClassDTO {
    private int Id;
    private String title;
    private String detail;
    private int minutes;
    private Type type;
    private String room;

    public enum Type {
        CHINESE(1, "中文老师"),
        ENGLISH(2, "英文老师");

        private int value;
        private String title;

        Type(int value, String title) {
            this.value = value;
            this.title = title;
        }

        public int getValue() {
            return value;
        }

        public String getTitle() {
            return title;
        }
    }
}
